<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue测试</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id="app">
    {{title}}
    <h2>{{msg}}</h2>
    <h3>{{htmlTxt}}</h3>
    <h3 v-html="htmlTxt"></h3>
  </div>
  <script type="text/javascript">
    var app = new Vue({
      el: '#app',
      data: {
        title: 'hello Vue',
        msg: '前端vue框架',
        htmlTxt: '<span>vue</span>'
      }
    })
  </script>
</body>

</html>